//
//  FaceFilter.h
//  FaceFilter
//
//  Created by 杨辉 on 16/8/3.
//  Copyright © 2016年 musical.ly. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreVideo/CoreVideo.h>
#import <UIKit/UIKit.h>
#import <CoreMedia/CMSampleBuffer.h>
#import <CoreAudio/CoreAudioTypes.h>
#import "AudioBufferPackage.h"

//typedef enum {
//    FF_ROTATE_0,
//    FF_ROTATE_90,
//    FF_ROTATE_180,
//    FF_ROTATE_270
//} FF_rotate_type;

@interface FaceFilterCert : NSObject
@property (nonatomic, strong) NSString *certPath;

@end

@interface FaceFilter : NSObject

- (bool)Init: (FaceFilterCert*)cert withSize:(CGSize)size;
- (bool)Uinit;

- (bool)doAudioFilter:(NSBundle *)filterBundle withData:(AudioBufferPackage *)data withTime:(double)timestamp withDictionary:(NSDictionary *)dictionary;

- (bool)doFilter:(NSBundle *)filterBundle withData:(CVPixelBufferRef)pixelBuffer withTime:(double)timestamp withDictionary:(NSDictionary *)dictionary;

- (NSArray *) doStaticFaceDetection:(UIImage *)srcImage;

@end
